package com.hanhai.material.device.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 *  实体类。
 *
 * @author youchuang
 * @since 2024/04/13 08:30:32
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "sys_product_into",dataSource = "device")
public class SysProductInto implements Serializable {

    @Id(keyType = KeyType.Auto)
    private Long id;

    private String dataId;

    private String workShopName;

    private Date productDate;

    private String machineArea;

    private String machineName;

    private String shift;

    private String shiftCode;

    private String workPlanId;

    private String productId;

    private String productName;

    private String shortName;

    @Column(onInsertValue = "now()")
    private Date intoTime;

    private int num;

    private int actualNum;

    private int detentionNum;

    private String type;

    private String intoType;

    private boolean isProduct;

    @Column(onInsertValue = "now()")
    private Date createTime;

    @Column(onUpdateValue = "now()")
    private Date updateTime;


    private String createUserId;

    private String createUserName;

    private String updateUserId;
    @Column(onInsertValue = "0")
    private Integer status;

    private String kingNo;

    private String kingId;

    private Integer boxNum;

    private Integer actualBoxNum;

    private Integer tailBoxNum;

    private Integer actualTailBoxNum;

    private Integer quantity;

    private String stockName;

    private String stockId;

    private String stockPositionName;

    private String stockPositionId;

    private String updateUserName;

    private String note;

    private String checker;

    private String checkerId;

    @Column(ignore = true)
    private Date startDate;

    @Column(ignore = true)
    private Date endDate;

    @Column(ignore = true)
    private SysProductRecordInto productRecordInto;



    @Column(ignore = true)
    private SysWorkPlan workPlan;


    private Date checkTime;
}
